#ifndef DIGITAL_TEMP_SENSOR_H
#define DIGITAL_TEMP_SENSOR_H

#include "types.h"
#include "stm32f10x.h"
#include "SensorChannels.h"

// extern void *OpenDigitalTemperatureSensor(GPIO_TypeDef *IOPort, uint16_t IOPinMask, GPIO_TypeDef *PullupCtrlPort,
// 	uint16_t PullupCtrlPinMask, int ReadPeriodInMs);
// extern void CloseDigitalTemperatureSensor(void *_handle);
// extern int SetDigitalTemperatureSensorReadPeriodInMs(void *handle, int MilliSecond);
// extern int ReadDigitalTemperatureSensor(void *_handle, uint16_t *TempValue16);

extern int OpenDigitalTemperatureSensor(int channel, const SensorChannelHw_t *Hw, int ReadPeriodInMs);
extern void CloseDigitalTemperatureSensor(int channel, const SensorChannelHw_t *Hw);
extern int SetDigitalTemperatureSensorReadPeriodInMs(int channel, int MilliSecond);
extern int ReadDigitalTemperatureSensor(int channel, uint16_t *TempValue16);

#endif // ifndef DIGITAL_TEMP_SENSOR_H
